package com.eds.mall.product.feign;

import com.eds.common.dto.SkuHasStockDto;
import com.eds.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "mall-ware")
public interface WareFeignService {

    @PostMapping("/ware/waresku/hasstock")
    //@RequiresPermissions("ware:waresku:list")
    List<SkuHasStockDto> hasStock(@RequestBody List<Long> skuIds);
}
